package com.tianyu.inspection.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**********************************
 * @Author YSW
 * @Description 管线
 * @Date 2021/1/4 - 11:18
 **********************************/

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Pipeline implements Serializable {

    private Integer id;

    private Integer parentId;
    private Integer type;

    private String name;
    private String description;
    private String pointsUrl;
    private String centerPoint;

    private Integer wide;
    private String color;

    private Integer state;
    private Integer projectId;

    @TableField(exist = false)
    private Integer pointsCount;

    @TableField(exist = false)
    private Object points;

    @TableField(exist = false)
    private List<Pipeline> children = new ArrayList<>();
}
